package com.android.lovely.aav.discount

import com.android.lovely.data.Preferential
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.SharedFlow

class DiscountEventDispatcher {

    private val _discountFlow = MutableSharedFlow<Preferential>(replay = 1)
    val discountFlow: SharedFlow<Preferential> get() = _discountFlow

    suspend fun emitDiscountInfo(info: Preferential) {
        _discountFlow.emit(info)
    }
}